package pers.lls.im.core.common;

import pers.lls.im.core.api.MessagePersistService;
import pers.lls.im.core.api.UnReadMessageService;
import pers.lls.im.core.api.VerifyService;
import pers.lls.im.core.task.DataAsynchronousTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 功能描述：
 *
 * @author lihuan
 * @version V1.0 创建时间：2019/8/5 17:31
 * Copyright 2019 by landray & STIC
 */
//@Component
public class BeanFactoryDcp {

    public static MessagePersistService messagePersistService;

    public static VerifyService verifyService;

    public static DataAsynchronousTask dataAsynchronousTask;

    public static UnReadMessageService unReadMessageService;

    @Autowired
    public void setMessagePersistService(MessagePersistService messagePersistService){
        BeanFactoryDcp.messagePersistService = messagePersistService;
    }

    @Autowired
    public void setVerifyService(VerifyService verifyService){
        BeanFactoryDcp.verifyService = verifyService;
    }

    @Autowired
    public void setDataAsynchronousTask(DataAsynchronousTask dataAsynchronousTask){
        BeanFactoryDcp.dataAsynchronousTask = dataAsynchronousTask;
    }

    @Autowired
    public void setUnReadMessageService(UnReadMessageService unReadMessageService){
        BeanFactoryDcp.unReadMessageService = unReadMessageService;
    }

}
